<template>
	<view class="page-total">
		
		<view style="width: 750rpx; height:340rpx ;overflow:hidden;">
			<web-view :fullscreen="false"   :src="trailUrl" >
				
				
			</web-view>
		</view>
		
	</view>
</template>
<!-- <template>
	<view>
		<iframe id="iframe" style="display: flex;width: 750rpx; height:340rpx ; " :src="trailUrl"
			ref="iframe">
		</iframe>
		<web-view id="iframe" style="display: flex;width: 750rpx; height:340rpx ; " :src="trailUrl"
			ref="iframe">
		</web-view>
	</view>
</template> -->

<script>
	import {oss_host} from '@/config/config.js';
export default {
	props: {
		title: {
			type: String,
			default: ''
		},
		trailUrl:{
			type: String,
			default:'https://api.kuaidi100.com/tools/map/be1f1128ecc22c76caee9f2cd83010c7_108.366543,22.817002_5'
		}
		
		
	},
	
	
	computed: {
		
		// 一个计算属性的 getter
			
		   productList1() {
		  //    // `this` 指向当前组件实例
			 // console.log(this.productList)
			 // // this.productList = [{cover_image:99999,is_goods:22,name:99999,price:44,cost:55,sale_count:66}]
		  //      return this.productList
		   }
	},
	
	data() {
		return {
			  OSS_HOST: oss_host,
			frameHeight: getApp().globalData.windowHeight,
			frameWidth: getApp().globalData.windowWidth,
			
		};
	},
	
	methods:{
		
		toBannerUrl(item){
			
			
			uni.navigateTo({
				url: item
			})
		},
		toMost(title){
			uni.navigateTo({
				url: '/pages/Activity/index?title='+title
				
			})
		},
		tozhuanqu(row){
			let _this = this
			_this.$refer.setVilit('/pages/ActivityRet/index')
			let callback = function(url) {
				_this.$refs.popupvLogin.open()
			}
			let data = {
				title:row.name,
				id:row.id
			}
			_this.$refer.toUrl(callback, data)
			// uni.navigateTo({
			// 	url: '/pages/ActivityXuetan/index?title='+title
				
			// })
		},
		tozhulin(){
			uni.navigateTo({
				url: '/packagePlugin/pages/index'
			})
		},
		// 砍价列表
		toActivity(){
			
			uni.navigateTo({
				url: '/pages/Bargain/index'
			})
		},
		/**
		 * 跳转点击
		 * @param {String} type 跳转类型
		 */
		onSkip(type,id=0){
			let _this = this
			switch (type){
				case 'classify':
					// 跳转					
					_this.$refer.setVilit('/pages/SearchGoodsList/SearchGoodsList')
					let callback = function(url) {
						_this.$refs.popupvLogin.open()
					}
					let data = {
						property_id:id,
						
					}
					_this.$refer.toUrl(callback, data)
					break;
				case 'goods':
					
					_this.$refer.setVilit('/pages/GoodsDetails/GoodsDetails')
					let callback1 = function(url) {
						_this.$refs.popupvLogin.open()
					}
					let data1 = {
						id:id,
						
					}
					_this.$refer.toUrl(callback1, data1)
					break;
			}
		}
	}
};
</script>

<style lang="scss">
@import 'logistics.scss';
</style>
